#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    srand(time(0));
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_agree_clicked()
{
    ui->label->setText("you are good man");
}

void Widget::on_pushButton_reject_clicked()
{
    int x = this->geometry().width();
    int y = this->geometry().height();
    int x1 = rand()%x+1;
    int y1 =rand()%y+1;
    ui->pushButton_reject->setGeometry(x1,y1,ui->pushButton_reject->geometry().width()
                                       ,ui->pushButton_reject->geometry().height());

}
